<template>
  <div class="nav">
    <van-tabbar
      v-model="active"
      active-color="#34C37E"
      :fixed="true"
      :safe-area-inset-bottom="true"
    >
      <van-tabbar-item icon="home-o" dot to="/Home">推荐</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/MusicSinger">歌手</van-tabbar-item>
      <van-tabbar-item icon="video-o" to="/video">视频</van-tabbar-item>
      <van-tabbar-item icon="bar-chart-o" to="/MusicRanking">排行</van-tabbar-item>
      <van-tabbar-item icon="user-circle-o" to="/MusicMine">我的</van-tabbar-item>
       <!-- <van-tabbar-item icon="user-circle-o" to="/denglu">排行</van-tabbar-item> -->
    </van-tabbar>
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
  name: "MusicTabBar",
  props: {
    actives: {
      type: Number,
    },
  },
  data() {
    return {
      active: this.actives,
    };
  },
  computed: {
    ...mapState({
      showPlay: (state) => state.currentIndex >= 0,
    }),
  },
  mounted() {},

  methods: {},
};
</script>

<style lang="less" scoped>
.nav {
  position: fixed;
  z-index: 7;
}
</style>